#ifndef __CREATE_WINDOW_H
#define __CREATE_WINDOW_H

static void delete_hism(GtkWidget *widget, gpointer data)
{
	gtk_main_quit();
	return ;
}

static void create_window(void)
{
	int i = 0;

	window = g_object_new(GTK_TYPE_WINDOW, 
				"title", "Harry Ilana System Monitor", 
				"default_height", window_height,
				"default_width", window_width,
				NULL);
	gtk_container_border_width(GTK_CONTAINER(window), 10);
	notebook = g_object_new(GTK_TYPE_NOTEBOOK, NULL);
	for (i = 0; i < PAGE_AMOUNTS; i++) {
		page_title[i] = g_object_new(GTK_TYPE_LABEL, "label", page_title_char[i], NULL);
		page_table[i] = gtk_table_new(grid_v, grid_h, FALSE);
	}
	g_signal_connect(window, "destroy", G_CALLBACK(delete_hism), NULL);
	gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(notebook));
	for (i = 0; i < PAGE_AMOUNTS; i++) {
		gtk_notebook_append_page(GTK_NOTEBOOK(notebook), GTK_WIDGET(page_table[i]), GTK_WIDGET(page_title[i]));
	}
	return ;
}

#endif
